/* 充值套餐样式 */
.packages-section {
	margin: 0 30rpx 40rpx;
}

.section-header {
	text-align: center;
	margin-bottom: 30rpx;
}

.section-title {
	font-size: 36rpx;
	font-weight: 700;
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 10rpx;
}

.section-subtitle {
	font-size: 26rpx;
	color: #6b7280;
	font-weight: 500;
}

.package-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20rpx;
}

.package-item {
	position: relative;
	background: rgba(255,255,255,0.95);
	-webkit-backdrop-filter: blur(30rpx);
	backdrop-filter: blur(30rpx);
	border-radius: 20rpx;
	padding: 25rpx 20rpx;
	text-align: center;
	border: 3rpx solid transparent;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4rpx 20rpx rgba(0,0,0,0.08);
	overflow: hidden;
	min-height: 300rpx;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.package-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, transparent 0%, rgba(16, 185, 129, 0.05) 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.package-item.selected {
	border-color: #10b981;
	transform: translateY(-8rpx) scale(1.02);
	box-shadow: 
		0 20rpx 40rpx rgba(16, 185, 129, 0.2),
		0 0 0 1rpx rgba(16, 185, 129, 0.3);
}

.package-item.selected::before {
	opacity: 1;
}

.package-item.recommended {
	border-color: #f59e0b;
	box-shadow: 
		0 8rpx 32rpx rgba(245, 158, 11, 0.25),
		0 0 0 2rpx rgba(245, 158, 11, 0.3),
		0 0 50rpx rgba(245, 158, 11, 0.2);
	animation: recommendGlow 3s ease-in-out infinite;
}

@keyframes recommendGlow {
	0%, 100% { 
		box-shadow: 
			0 8rpx 32rpx rgba(245, 158, 11, 0.25),
			0 0 0 2rpx rgba(245, 158, 11, 0.3),
			0 0 50rpx rgba(245, 158, 11, 0.2);
	}
	50% { 
		box-shadow: 
			0 12rpx 40rpx rgba(245, 158, 11, 0.4),
			0 0 0 2rpx rgba(245, 158, 11, 0.5),
			0 0 80rpx rgba(245, 158, 11, 0.4);
	}
}

.package-item.hot {
	animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
	from { box-shadow: 0 4rpx 20rpx rgba(239, 68, 68, 0.1); }
	to { box-shadow: 0 8rpx 32rpx rgba(239, 68, 68, 0.3); }
}

.package-badges {
	position: absolute;
	top: -8rpx;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 10rpx;
	z-index: 10;
}

.package-discount {
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
	color: white;
	font-size: 20rpx;
	font-weight: 700;
	padding: 8rpx 16rpx;
	border-radius: 20rpx;
	box-shadow: 0 4rpx 12rpx rgba(239, 68, 68, 0.4);
	letter-spacing: 1rpx;
}

.package-recommended {
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
	color: white;
	font-size: 20rpx;
	font-weight: 700;
	padding: 8rpx 16rpx;
	border-radius: 20rpx;
	box-shadow: 0 4rpx 12rpx rgba(245, 158, 11, 0.4);
	animation: shine 2s infinite;
}

@keyframes shine {
	0%, 100% { box-shadow: 0 4rpx 12rpx rgba(245, 158, 11, 0.4); }
	50% { box-shadow: 0 4rpx 20rpx rgba(245, 158, 11, 0.8); }
}

.package-hot {
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
	color: white;
	font-size: 18rpx;
	font-weight: 700;
	padding: 6rpx 12rpx;
	border-radius: 20rpx;
	animation: shake 1s infinite;
}

@keyframes shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-2rpx); }
	75% { transform: translateX(2rpx); }
}

/* 新增套餐头部样式 */
.package-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 15rpx;
}

.package-description {
	font-size: 22rpx;
	color: #6b7280;
	font-weight: 500;
}

.package-icon {
	font-size: 35rpx;
	filter: drop-shadow(0 4rpx 8rpx rgba(16, 185, 129, 0.3));
}

.package-amount {
	font-size: 42rpx;
	font-weight: 800;
	color: #10b981;
	margin-bottom: 15rpx;
	text-shadow: 0 2rpx 8rpx rgba(16, 185, 129, 0.2);
	line-height: 1.2;
}

.amount-unit {
	font-size: 24rpx;
	color: #6b7280;
	font-weight: 500;
	margin-left: 4rpx;
}

.package-price-section {
	margin-bottom: 12rpx;
}

.package-price {
	font-size: 36rpx;
	font-weight: 800;
	color: #ef4444;
	margin-bottom: 4rpx;
}

.package-original {
	font-size: 20rpx;
	color: #9ca3af;
	text-decoration: line-through;
}

.package-bonus {
	font-size: 20rpx;
	color: #10b981;
	font-weight: 600;
	background: rgba(16, 185, 129, 0.1);
	padding: 6rpx 12rpx;
	border-radius: 12rpx;
	display: inline-block;
	margin-bottom: 8rpx;
}

.package-value {
	font-size: 18rpx;
	color: #ef4444;
	font-weight: 700;
	background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
	padding: 4rpx 8rpx;
	border-radius: 8rpx;
	display: inline-block;
}

/* 支付方式样式 */
.payment-section {
	margin: 0 30rpx 30rpx;
}

.payment-section .section-title {
	font-size: 32rpx;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 20rpx;
	padding-left: 10rpx;
}

.payment-methods {
	background: rgba(255,255,255,0.9);
	-webkit-backdrop-filter: blur(20rpx);
	backdrop-filter: blur(20rpx);
	border-radius: 20rpx;
	overflow: hidden;
	border: 1rpx solid rgba(16, 185, 129, 0.1);
}

.payment-item {
	display: flex;
	align-items: center;
	padding: 30rpx;
	border-bottom: 1rpx solid rgba(0,0,0,0.05);
	transition: all 0.3s ease;
}

.payment-item:last-child {
	border-bottom: none;
}

.payment-item.selected {
	background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.03) 100%);
}

.payment-icon {
	font-size: 40rpx;
	margin-right: 20rpx;
}

.payment-name {
	flex: 1;
	font-size: 30rpx;
	color: #1f2937;
	font-weight: 500;
}

.payment-check {
	width: 36rpx;
	height: 36rpx;
	background: #10b981;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 20rpx;
	font-weight: 700;
}

.payment-radio {
	width: 36rpx;
	height: 36rpx;
	border: 2rpx solid #d1d5db;
	border-radius: 50%;
}

/* 安全保障样式 */
.security-section {
	margin: 0 30rpx 40rpx;
}

.security-items {
	display: flex;
	justify-content: space-around;
	background: rgba(255,255,255,0.8);
	-webkit-backdrop-filter: blur(20rpx);
	backdrop-filter: blur(20rpx);
	border-radius: 20rpx;
	padding: 30rpx 20rpx;
	border: 1rpx solid rgba(16, 185, 129, 0.1);
}

.security-item {
	text-align: center;
	flex: 1;
}

.security-icon {
	font-size: 36rpx;
	margin-bottom: 10rpx;
	display: block;
}

.security-text {
	font-size: 24rpx;
	color: #6b7280;
	font-weight: 500;
}

/* 底部占位 */
.bottom-placeholder {
	height: 200rpx;
}

/* 悬浮支付按钮 */
.floating-pay-section {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 999;
	background: rgba(255,255,255,0.98);
	-webkit-backdrop-filter: blur(30rpx);
	backdrop-filter: blur(30rpx);
	border-top: 1rpx solid rgba(16, 185, 129, 0.2);
	box-shadow: 0 -8rpx 32rpx rgba(0,0,0,0.1);
	padding: 30rpx;
	padding-bottom: calc(30rpx + env(safe-area-inset-bottom));
}

.floating-pay-container {
	display: flex;
	align-items: center;
	gap: 20rpx;
	margin-bottom: 20rpx;
}

.pay-info {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.pay-package-info {
	flex: 1;
}

.pay-package {
	font-size: 28rpx;
	color: #1f2937;
	font-weight: 700;
	margin-bottom: 4rpx;
}

.pay-description {
	font-size: 22rpx;
	color: #6b7280;
	font-weight: 500;
}

.pay-badges {
	display: flex;
	gap: 8rpx;
	align-items: center;
}

.pay-discount {
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
	color: white;
	font-size: 18rpx;
	font-weight: 700;
	padding: 4rpx 8rpx;
	border-radius: 8rpx;
}

.pay-bonus {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: white;
	font-size: 18rpx;
	font-weight: 700;
	padding: 4rpx 8rpx;
	border-radius: 8rpx;
}

.floating-pay-btn {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	border: none;
	border-radius: 50rpx;
	padding: 0;
	min-width: 260rpx;
	height: 100rpx;
	box-shadow: 
		0 8rpx 32rpx rgba(16, 185, 129, 0.4),
		0 0 0 1rpx rgba(16, 185, 129, 0.2);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	animation: payButtonPulse 4s ease-in-out infinite;
}

@keyframes payButtonPulse {
	0%, 100% { 
		transform: scale(1);
		box-shadow: 
			0 8rpx 32rpx rgba(16, 185, 129, 0.4),
			0 0 0 1rpx rgba(16, 185, 129, 0.2);
	}
	50% { 
		transform: scale(1.02);
		box-shadow: 
			0 12rpx 40rpx rgba(16, 185, 129, 0.6),
			0 0 0 1rpx rgba(16, 185, 129, 0.3),
			0 0 60rpx rgba(16, 185, 129, 0.3);
	}
}

.floating-pay-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
	transition: left 0.6s ease;
}

.floating-pay-btn:active::before {
	left: 100%;
}

.floating-pay-btn:active {
	transform: scale(0.98);
	box-shadow: 
		0 4rpx 16rpx rgba(16, 185, 129, 0.6),
		0 0 0 1rpx rgba(16, 185, 129, 0.3);
}

.floating-pay-btn[disabled] {
	background: #d1d5db;
	box-shadow: none;
}

.pay-btn-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 8rpx 16rpx;
}

.pay-main {
	display: flex;
	align-items: center;
	gap: 8rpx;
}

.pay-price {
	font-size: 32rpx;
	font-weight: 800;
	color: white;
	text-shadow: 0 2rpx 4rpx rgba(0,0,0,0.2);
}

.pay-text {
	font-size: 26rpx;
	font-weight: 600;
	color: white;
}

.pay-save {
	margin-top: 2rpx;
}

.save-text {
	font-size: 18rpx;
	color: rgba(255,255,255,0.9);
	font-weight: 600;
}

.agreement {
	text-align: center;
	font-size: 22rpx;
	color: #6b7280;
}

.agreement-link {
	color: #10b981;
	text-decoration: underline;
}

/* 响应式设计 */
@media screen and (max-width: 400px) {
	.package-grid {
		gap: 15rpx;
	}
	
	.package-item {
		padding: 25rpx 15rpx;
	}
	
	.package-amount {
		font-size: 42rpx;
	}
	
	.balance-amount {
		font-size: 80rpx;
	}
}